<template>
  <div>
    <el-button @click="clickHandler">切换状态</el-button>
  </div>
</template>

<script lang="ts" setup>
import { computed, onMounted, ref, reactive } from 'vue'
import { ElMessage } from 'element-plus'
import type {ProvideRefs} from './index.vue'
const provideRefs = inject('provideRefs') as ProvideRefs

const clickHandler = ()=>{
  provideRefs().Bro2.status = !provideRefs().Bro2.status
}
</script>

<style>
</style>
